﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace vigenere
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {
            
        }

        private void label2_Click(object sender, EventArgs e)
        {
          
        }

        private void label3_Click(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string PlainText = Console.ReadLine();
            string key = Console.ReadLine();

            //加密
            Encoder myEncoder = new Encoder();
            myEncoder.PlainText = this.textBox1.Text;
            myEncoder.Key = this.textBox2.Text;
            myEncoder.Encode();
            this.label4.Text = myEncoder.CipherText;
           

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
           

        }

        private void frmMain_Load(object sender, EventArgs e)
        {

        }
    }
}
